
package Timeline.Util.Cursor;

import Timeline.Imagem.Imagem;
import java.awt.Cursor;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;


public class CursorAzul implements ICursor {
    protected CursorAzul(){}
    @Override
    public void mudarCursor(JFrame tela) {
        
        Toolkit toolkit = Toolkit.getDefaultToolkit();
        Point cursorHotSpot = new Point(0,0);
        BufferedImage cursor =  Imagem.getInstance().getResourceImage("Ressource/System/Cursor/cursor.png");
        Cursor c = toolkit.createCustomCursor(cursor,cursorHotSpot,"Cursor");
        tela.setCursor(c);

    }
    
}
 